<template>
<div class="baseRolePrivilege">
   <!--按钮-->
   <div class="btns">
       <el-button type="primary" >主要按钮</el-button>
   </div>
   <!--/按钮-->
   <!--表格-->
   <el-table size="small" :data="BaseRolePrivilege">
     <el-table-column type="index" :index="1" label="序号"></el-table-column>
      <el-table-column label="角色地址" prop="roleid" align="center"></el-table-column>
       <el-table-column label="权限地址" prop="privilegeid" align="center"></el-table-column>
   </el-table>
   <!--/表格-->
 </div>
</template>
<script>
import {get,post} from '@/utils/request'
export default {
  // 页面数据
  data(){
    return {
     BaseRolePrivilege:[]
    }
  },
  // 页面渲染的时候会调用的函数
  created(){
    this.loadBaseRolePrivilege();
  },
  // 所有的方法
  methods:{
    loadBaseRolePrivilege(){
      let url = 'http://localhost:8888/BaseRolePrivilege/select'
      get(url).then((resp)=>{
        this.BaseRolePrivilege = resp.data;
      })
    }
  }
}
</script>
<style scoped>

</style>
